import request from "@/utils/request";
import { GameInfo } from "@/interfaces";

export class UserService {
  static async login(params: {
    userAddress: string;
    signature: string;
    timestamp: string;
  }) {
    return request.post<{token: string}>("/user/login", params);
  }
  static async profile() {}
  static gameList(params: any) {
    return request.get<GameInfo[]>("/game/list", params, { noAuth: true });
  }

  static removeGame(params: any) {
    return request.post<GameInfo>("/game/info", params);
  }
}
